let $axios = require('axios')
$axios.defaults.baseURL = 'http://localhost:8090/api'

export function getActivityList(...params){
  return new Promise((resolve, reject) => {
    $axios.get('/discount/list').then(resp=>{
      if(resp && resp.status==200){
        let data=resp.data;
        console.log(JSON.stringify(data))
        resolve(data);
      }
    })
  })
}
